// 路由守卫实现
import store from "@/store";
import router from "@/router/index";

router.beforeEach((to, from, next)=> {
    var path = to.path;
    if(path==="/login"){
        return next();
    }

    var token = sessionStorage.getItem("Authorization");
    if(token){
        return next();
    }
    return next("/login")
})